package cn.foolishbird.hamal.frame.queryParam;

import cn.foolishbird.hamal.frame.constant.BusinessEnum;
import cn.foolishbird.hamal.frame.constant.DictKeyName;

/**
 * @author Eric
 * @version 1.0
 * @date 2020-03-11
 */
@DictKeyName("Hamal-QueryOptionType")
public enum QueryOptionTypeEnum implements BusinessEnum {

    EQ(1, "等于"),
    GT(2, "大于"),
    GE(3, "大于等于"),
    LT(4, "小于"),
    LE(5, "大于等于"),
    LIKE(6, "Like"),
    BETWEEN(7, "BETWEEN")
    ;


    /**
     * 类型
     */
    private int type;

    /**
     *
     */
    private String desc;

    QueryOptionTypeEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public int value() {
        return type;
    }

    @Override
    public String content() {
        return desc;
    }
}
